<{include file="header.htm"}>

<script src="<{$tpl_img}>images/common.js" type="text/javascript"></script>

	<div class="container">
		<div class="hastabmenu">
			<ul class="tabmenu">
				<li id="adduserbtn"><a href="#" onclick="switchbtn('add')">新增群组</a></li>
			</ul>
			<div id="srchuserdiv" class="tabcontentcur">
			</div>
            <div id="srchuserdiv" class="tabcontentcur">
				<form action="<{spUrl c=group a=add}>" method="post">
				<table width="100%">
					<tr>
						<td>群组名称:</td>
						<td><input type="text" name="groupname" value="" class="txt" /></td>
                        <td>重定向页：</td>
						<td><input type="text" name="redirecturl" value="" class="txt" /></td>
						<td><input type="submit" value="提交" class="btn" /></td>
					</tr>
				</table>
				</form>
			</div>
		</div>

<br />
		<h3>群组列表</h3>
		<div class="mainbox">
				<form action="<{spUrl c=group a=delete}>" onsubmit="return confirm('该群组下的权限将清空！该群组下的用户将无群组归属，导致无法登入系统，要使该部分用户恢复使用，您需要重新为他们划分群组！确认删除这些群组吗？');" method="post">
				<table class="datalist fixwidth" onmouseover="addMouseEvent(this);">
					<tr>
						<th><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /><label for="chkall">删除？</label></th>
						<th>群组编号</th>
						<th>群组名称</th>
						<th>编辑</th>
					</tr>
					<{section name=i loop=$grouplist}>
						<tr height="60px">
							<td class="option"><input type="checkbox" name="delete[]" value="<{$grouplist[i].groupid}>" class="checkbox" /></td>
							<td><strong><{$grouplist[i].groupid}></strong></td>
							<td><{$grouplist[i].groupname}></td>
							<td><a href="<{spUrl c=group a=edit_page groupid=$grouplist[i].groupid}>">编辑</a></td>
						</tr>
					<{/section}>
					<tr class="nobg">
						<td><input type="submit" value="删除所选群组" class="btn" /></td>
						<td class="tdpage" colspan="6"></td>
					</tr>
				</table>
				</form>
                
		</div>
	</div>

